package com.example.utils;

public class Constants {
    public static class User_AUTH {
        public final static String AUTH_UNKNOWN = "1001";
        public final static String AUTH_AUTHENTICATION_FAILED = "1002";
        public final static String AUTH_PARAMETER_ERROR = "1003";
        public final static String AUTH_TOKEN_INVALID = "1004";
        public final static String AUTH_USER_ALREADY_EXISTS = "1005";
        public final static String AUTH_ILLEGAL_USERCODE= "1006";
    }

    public static class Redis_Expire {
        public static final long DEFAULT_EXPIRE = 60;
        public final static Long SESSION_TIMEOUT = 2 * 60 * 60L;
        public final static Long REPLACEMENT_PROTECTION_TIMEOUT = 1*60*60*1000L;
        public final static Long REPLACEMENT_DELAY = 2*60*1000L;
    }

    public static class OrderStatus {
        public final static Integer TOPAY = 0;
        public static final Integer SUCCESS = 1;
        public final static Integer FAIL = 2;
    }

    public static class QueueName {

        public final static String TO_CREATE_ORDER = "toCreateOrder";

        public final static String TO_UPDATED_ORDER_QUEUE = "toUpdateOrderQueue";

        public final static String TO_UPDATED_GOODS_QUQUE = "toUpdateGoodsQueue";
    }
}
